package com.mousycoder.search.service;

import com.mousycoder.search.model.NBAPlayer;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * TODO
 *
 * @author mousycoder
 * @version 1.0
 * @date 2022/4/4 4:19 PM
 */
public interface NBAPlayerService {

    public boolean addPlayer(NBAPlayer player,String id) throws IOException;

    Map<String,Object> getPlayer(String id) throws IOException;

    boolean updatePlayer(NBAPlayer nbaPlayer, String id) throws IOException;

    boolean delPlayer(String id) throws IOException;

    boolean deleteAllPlayer() throws IOException;

    boolean importAll() throws IOException;

    List<NBAPlayer> searchMatch(String key, String value) throws IOException;

    List<NBAPlayer> searchMatchPrefix(String key, String value) throws IOException;

    List<NBAPlayer> searchTerm(String key, String value) throws IOException;
}
